package com.miracle9.game.entity;

import javax.persistence.Entity;

@Entity
public class BusineLog
  extends BaseEntity
{
  private String username;
  private String datetime;
  private double money;
  private int gold;
  private String admin;
  private BusineType type;
  
  public BusineLog() {}
  
  public BusineLog(String username, String datetime, double money, int gold, String admin, BusineType type)
  {
    this.username = username;
    this.datetime = datetime;
    this.money = money;
    this.gold = gold;
    this.admin = admin;
    this.type = type;
  }
  
  public static enum BusineType
  {
    PAY,  EXPIRY,  LEASE,  GIVE;
  }
  
  public String getUsername()
  {
    return this.username;
  }
  
  public void setUsername(String username)
  {
    this.username = username;
  }
  
  public String getDatetime()
  {
    return this.datetime;
  }
  
  public void setDatetime(String datetime)
  {
    this.datetime = datetime;
  }
  
  public double getMoney()
  {
    return this.money;
  }
  
  public void setMoney(double money)
  {
    this.money = money;
  }
  
  public int getGold()
  {
    return this.gold;
  }
  
  public void setGold(int gold)
  {
    this.gold = gold;
  }
  
  public String getAdmin()
  {
    return this.admin;
  }
  
  public void setAdmin(String admin)
  {
    this.admin = admin;
  }
  
  public BusineType getType()
  {
    return this.type;
  }
  
  public void setType(BusineType type)
  {
    this.type = type;
  }
}
